package com.koron.order.patrol.business.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.patrol.bean.dto.PatrolDto;
import com.koron.order.patrol.bean.query.PatrolQuery;
import com.koron.order.patrol.bean.vo.PatrolBaseVo;
import com.koron.order.patrol.bean.vo.PatrolExportVo;
import com.koron.order.patrol.bean.vo.PatrolPointVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

public interface PatrolBusinessService {

    String insertOrUpdate(SessionFactory factory, PatrolDto patrolDto);

    PageInfo queryVoPageList(SessionFactory factory, PatrolQuery query, PageQuery pageQuery);

    PatrolDto queryPatrolDtoByOrderId(SessionFactory factory, String orderId);

    PatrolDto queryPatrolAllDtoByOrderId(SessionFactory factory, String orderId);

    PatrolBaseVo queryByOrderId(SessionFactory factory, String orderId);

    PatrolPointVo queryByPatrolPointId(SessionFactory factory, String patrolPointId);

    List<PatrolPointVo> queryPatrolPointVoByPatrolId(SessionFactory factory, String orderId);

    String insertPatrolUser(SessionFactory factory, PatrolDto patrolDto);

    List<PatrolExportVo> queryVoList(SessionFactory factory, PatrolQuery query);

}
